﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ELookUpType extends Object
    {
        public var __value:int;
        public static const _ELookUpTypePlayer:int = 1;
        public static const _ELookUpTypePet:int = 2;
        public static const _ELookUpTypeMount:int = 3;
        public static const _ELookUpTypeFashion:int = 4;
        public static const _ELookUpTypeWings:int = 5;
        public static const _ELookUpTypeWeapon:int = 6;
        public static const _ELookUpTypeFightSoul:int = 7;
        public static const _ELookUpTypeFightMethod:int = 8;
        public static const _ELookUpTypeDragonSoul:int = 9;
        public static const _ELookUpTypeHolyBook:int = 10;
        public static const _ELookUpTypeWarShield:int = 11;
        public static const _ELookUpTypeMonsterSoul:int = 12;

        public function ELookUpType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ELookUpType
        {
            return new ELookUpType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ELookUpType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 13)
            {
                throw new MarshalException();
            }
            return ELookUpType.convert(_loc_2);
        }// end function

    }
}
